Skip to main content

Installation

banner-python

🐍 Python + πŸ’» VS Code Setup Guide​

Welcome, future Pythonista! πŸŽ‰ Let’s get you up and running with Python and VS Code in a few fun and easy steps. We'll even test things out with a classic "Hello, World!" πŸ‘‹


🧰 Step 1: Install Python​

πŸ”— Download Python​

Go to the official Python website and download the latest version:
πŸ‘‰ https://www.python.org/downloads/

πŸ› οΈ Installation Instructions​

  1. Run the installer.
  2. βœ… Important: Check the box "Add Python to PATH".
  3. Click Install Now.
  4. Wait for the magic to happen… ✨

βœ… Verify Installation​

Open a terminal or command prompt and type:

python3 --version

You should see something like:

Python 3.13.0

Awesome! Python is ready to party πŸŽ‰


πŸ’» Step 2: Install VS Code​

πŸ”— Download VS Code​

Grab it from the official site:
πŸ‘‰ https://code.visualstudio.com/

πŸ› οΈ Installation Instructions1​

  1. Run the installer.
  2. Keep all default settings.
  3. Make sure to check:
    • βœ… "Add to PATH"
    • βœ… "Register Code as an editor for supported file types"
  4. Click Install.

πŸš€ Launch VS Code​

Open up VS Code and bask in its glory.


🧩 Step 3: Install the Python Extension for VS Code​

  1. Open VS Code.
  2. Go to the Extensions tab on the left sidebar (Ctrl+Shift+X).
  3. Search for Python by Microsoft.
  4. Click Install.

VS Code will now understand your Python code like a wise sensei πŸ§™β€β™‚οΈ


πŸ“ Step 4: Create and Run Your First Python Program​

πŸ—‚οΈ Create a Python File​

  1. Open a folder in VS Code where you want to save your Python files.
  2. Click New File and name it helloworld.py.

✍️ Add This Code​

print("Hello, Python World! πŸŽ‰")

▢️ Run It​

  1. Right-click inside the file.
  2. Choose Run Python File in Terminal.

Or simply click the green "Play" button in the top right corner.

You should see:

Hello, Python World! πŸŽ‰

You're officially coding in Python! πŸ’₯


πŸ” Try Another Example – Adding Two Numbers​

num1 = 10
num2 = 20
result = num1 + num2

print("Sum is:", result)

Output:

Sum is: 30

πŸŽ‰ You Did It​

You're all set up and ready to conquer the world with Python and VS Code.
Now go forth and build something amazing! πŸš€

Happy coding! πŸ˜„πŸ